import request from "@/utils/request";

// 查询评测题目列表
export function listAppraisalTopic(query) {
  return request({
    url: "/business/appraisal/appraisalTopicList",
    method: "get",
    params: query,
  });
}

// 查询评测题目详细
export function getAppraisalTopic(id) {
  return request({
    url: "/business/appraisal/" + id,
    method: "get",
  });
}

// 修改评测题目详细
export function updateAppraisal(data) {
  return request({
    url: "/business/appraisal",
    method: "put",
    data
  });
}

// 新增评测题目
export function addAppraisalTopic(data) {
  return request({
    url: "/business/appraisalTopic",
    method: "post",
    data: data,
  });
}

// 修改评测题目
export function updateAppraisalTopic(data) {
  return request({
    url: "/business/appraisalTopic",
    method: "put",
    data: data,
  });
}

// 删除评测题目
export function delAppraisalTopic(id) {
  return request({
    url: "/business/appraisalTopic/" + id,
    method: "delete",
  });
}

// 查询评测列表

export function appraisalList(query) {
  return request({
    url: "/business/appraisal/list",
    method: "get",
    params: query,
  });
}

// 查询评测因子列表

export function appraisalDivisorList(query) {
  return request({
    url: "/business/appraisal/appraisalDivisorList",
    method: "get",
    params: query,
  });
}

// 查询评测题目列表

export function appraisalTopicLists(query) {
  return request({
    url: "/business/appraisal/appraisalTopicList",
    method: "get",
    params: query,
  });
}
// 查询评测因子评语列表
export function SuggestLists(query) {
  return request({
    url: "/business/appraisalDivisorSuggest/list",
    method: "get",
    params: query,
  });
}
// 新增评测因子评语列表
export function addSuggestLists(data) {
  return request({
    url: "/business/appraisalDivisorSuggest",
    method: "post",
    data,
  });
}
// 修改评测因子评语列表
export function editSuggestLists(data) {
  return request({
    url: "/business/appraisalDivisorSuggest",
    method: "put",
    data,
  });
}

// 删除评测因子评语列表
export function delSuggest(id) {
  return request({
    url: "/business/appraisalDivisorSuggest/" + id,
    method: "delete",
  });
}
// 查询详情
export function getDivisorSuggest(id) {
  return request({
    url: "/business/appraisalDivisorSuggest/" + id,
    method: "get",
  });
}



// 查询总分
export function TotalSuggest(query) {
  return request({
    url: "/business/appraisalTotalSuggest/list",
    method: "get",
    params: query,
  });
}
// 新增评测因子评语列表
export function addTotalSuggest(data) {
  return request({
    url: "/business/appraisalTotalSuggest",
    method: "post",
    data,
  });
}
// 修改评测因子评语列表
export function editTotalSuggest(data) {
  return request({
    url: "/business/appraisalTotalSuggest",
    method: "put",
    data,
  });
}

// 删除评测因子评语列表
export function delTotalSuggest(id) {
  return request({
    url: "/business/appraisalTotalSuggest/" + id,
    method: "delete",
  });
}
// 查询详情
export function getTotalSuggest(id) {
  return request({
    url: "/business/appraisalTotalSuggest/" + id,
    method: "get",
  });
}

// 查询企业测评列表

export function enterpriseList(query) {
  return request({
    url: "/business/appraisal/enterpriseList",
    method: "get",
    params: query,
  });
}
